cd /root/run/go/code/common

git pull

cd /root/run/go/code/base_server

git pull

export GOPROXY=https://goproxy.cn

GO111MODULE=on go build -o base_server cmd/main.go

ssh test1 "supervisorctl stop base_server"

scp base_server configs/test.yml test1:/root/run/base_server

ssh test1 "supervisorctl start base_server"

#ssh test2 "supervisorctl stop base_server"
#
#scp base_server configs/test.yml test2:/root/run/base_server
#
#ssh test2 "supervisorctl start base_server"